#include <cstdio> // 包含标准输入输出头文件

__global__ void myKernel() {
    printf("Hello from the GPU!\n");
}

int main() {
    fprintf(stdout, "Launching kernel...\n");
    myKernel<<<1, 1>>>();
    cudaDeviceSynchronize(); // 等待 GPU 完成任务
    fprintf(stdout, "Kernel execution completed.\n");
    return 0;
}

